package com.deco.dao.warpper.product;

import com.deco.dao.delegate.product.IPqmsHistoryDao;
import com.deco.dao.domain.table.PqmsHistory;
import com.deco.dao.logic.product.PqmsHistoryDao;
import com.deco.domain.vo.product.PqmsHistoryVo;
import com.free.ext.mybatis.warpper.BaseDaoWarpper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class PqmsHistoryDaoWarpper extends BaseDaoWarpper<PqmsHistoryVo,Integer, PqmsHistory> implements IPqmsHistoryDao {

    @Autowired
    private PqmsHistoryDao dao;

    @Override
    public Integer count(PqmsHistoryVo historyVo) {
        PqmsHistory history = convertToTable(historyVo);
        return dao.getCount(history);
    }

    @Override
    public void registerEnums() {

    }
}
